package edu.fudan.jwxt.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.lang.reflect.Type;

@Data
@TableName("course_time")
public class CourseTime {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    private Integer classId;    // 有外键约束,由上一张表的自增主键决定
    private Integer weekDay;    // 星期几
    private Integer timeId;     // 第几个课时

    public CourseTime(){
        this.classId=2;
        this.weekDay=1;
        this.timeId=2;
    }


    public CourseTime(Integer classId, Integer weekDay, Integer timeId) {
        this.classId = classId;
        this.weekDay = weekDay;
        this.timeId = timeId;
    }
}
